<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <title>title</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css"/>
    <style>
        html, body {
        	height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }
        .mask {
        	width: 100%;
        	position: fixed;
			top: 0;
			bottom: 0;
        }
    </style>
</head>
<body>
	<div class="mask" tapmode onclick="fnMask();"></div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript">
    apiready = function(){
        api.addEventListener({
            name: 'closeMaskEvent'
        }, function(ret, err) {
            if (ret) {
                fnMask();
            }
        });
    };

    function fnMask() {
    	api.closeFrame({
            name: 'home_screen'
        });
        api.sendEvent({
            name: 'homeScreen',
            extra: {
                
            }
        });
        api.closeFrame({
            name: 'home_screen_bg'
        });
        api.closeFrame({
            name: 'home_screen_mask'
        });
    }
</script>
</html>